#include "UserInterface.h"
#include "BlackJackManager.h"




CUserInterface::CUserInterface(void)
{
}


CUserInterface::~CUserInterface(void)
{
}

int CUserInterface::AskForUserAction(void)
{
	int ret;

	std::cout << "Please choose your next action" << std::endl;
	std::cout << "1 - Hit" << std::endl;
	std::cout << "2 - Stand" << std::endl;
	std::cout << "Choice : ";
	std::cin >> ret;

	return ret;
}

void CUserInterface::DisplayHitCard(Player p, std::string s, bool IsDeal)
{
	if(IsDeal)
	{
		if(p == User)
		{
			std::cout << "User card : ";
		}
		else
		{
			std::cout << "Bank card : ";
		}
	}
	else
	{
		if(p == User)
		{
			std::cout << "User has hit a card" << std::endl;
		}
		else
		{
			std::cout << "Bank has hit a card" << std::endl;
		}
	}
	std::cout << s << std::endl;
}